package MulticastQuene;

import java.net.InetSocketAddress;

class AcknowledgeMessage extends MulticastMessageTotal {
    private int msgID;

    public AcknowledgeMessage(InetSocketAddress sender, int _msgID, int _clock) {
        super(sender,null,_clock);
        msgID = _msgID;
    }
    /**
     * @return The address of the peer who originally sent the
     *         join request message that resulted in this join
     *         message.
     */
    public int getAcknowledgedMessageID() {
        return msgID;
    }
    public MulticastMessageTotal getAcknowledgedMessage() {
        return null;
    }

    public String toString() {
        return "(AcknowledgeMessage for message with ID " + msgID +
                " from " + getSender() + ")";
    }
}